home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 9 / Night Owl CD-ROM (NOPV9) (Night Owl Publisher) (1993).ISO / 015a / memsz160.zip / ENGLISH.CMD < prev    next >
OS/2 REXX Batch file  |  1993-03-03  |  1KB  |  55 lines

  1. /* ENGLISH.CMD: Install MEMSIZE in English. */
  2.  
  3. /* Load REXXUTIL */
  4. Call RxFuncAdd 'SysLoadFuncs', 'REXXUTIL', 'SysLoadFuncs';
  5. Call SysLoadFuncs
  6.  
  7. Call SysCls
  8. Say 'Installing MEMSIZE...';
  9. Say '';
  10.  
  11. Say 'Please enter the full name of the directory to which';
  12. Say '  you want MEMSIZE installed (default C:\OS2\APPS): ';
  13. Pull Directory
  14. If Directory = "" Then Directory='C:\OS2\APPS'
  15. Result = SysFileTree(Directory, 'Dirs', 'D')
  16. If Dirs.0 = 0 Then Call SysMkDir Directory;
  17.  
  18. Say 'Do you wish to install to the startup folder? (Y/N)';
  19. Pull YesNo
  20. If YesNo = "Y" Then
  21.   Do
  22.   Folder='<WP_START>'
  23.   Say 'Object will be placed in the startup folder.';
  24.   End
  25. Else
  26.   Do
  27.   Folder='<WP_DESKTOP>'
  28.   Say 'Object will be placed on the desktop.';
  29.   End
  30.  
  31. Say 'Copying MEMSIZE to ' Directory '...';
  32. Say '';
  33. Language='ENGLISH'
  34. Copy MEMSIZE.EXE Directory
  35. Copy Language".DLL" Directory"\MEMSIZE.DLL"
  36. Copy Language".HLP" Directory"\MEMSIZE.HLP"
  37.  
  38. Say 'Creating program object...';
  39. Say ''; 
  40.  
  41. Type='WPProgram'
  42. Title='System Resources'
  43. Parms='MINWIN=DESKTOP;PROGTYPE=PM;EXENAME='Directory'\MEMSIZE.EXE;STARTUPDIR='Directory';OBJECTID=<MEMSIZE>;NOPRINT=YES;'
  44.  
  45. Result=SysCreateObject(Type,Title,Folder,Parms,'ReplaceIfExists');
  46.  
  47. If Result=1 Then 
  48.   Call charout ,'...   Object created!  Done.'
  49. Else             
  50.   Call charout ,'...   Not created! Return code='Result
  51.  
  52. Exit
  53.   
  54. 
  55.